package com.lequ.monitor.broadcast;

import com.lequ.monitor.Globals;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.util.Log;


public class NetBroadcastReceiver extends BroadcastReceiver{
 
	static final String TAG="NetBroadcastReceiver";
	
	@Override
	public void onReceive(Context context, Intent intent) {
		Log.i(TAG, "Net Change");
	   if (intent.getAction().equals(ConnectivityManager.CONNECTIVITY_ACTION)){
	       context.startService(new Intent(Globals.NET_SERVICE));        	               
	    }		
    }

	
}
